package com.zahb.qadx.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by Zdw on 2020/10/20 09:46
 * 列表数据公共类
 */
public class CommonData<T> implements Serializable {

    private int total;
    private List<T> list;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getList() {
        if (list == null)
            list = new ArrayList<>();
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
